#include "DAC0832.h"
#include "reg52.h"
float Set_Vol;
unsigned char Set_Count;		
sbit  DAC_CS=P3^4;      
#define DAC_Date_Port P0
void DAC_on(void)
{
 DAC_CS=0;
}

void DAC_off(void)
{
 DAC_CS=1;
}

void DAC_Set(unsigned char VPP)  
{
//	DAC_Date_Port=VPP;
  DAC_Date_Port=(VPP-(-5))/10*254;
}